package day8;

public class Veterinary {
    private String name, phone;

    public Veterinary(String name, String phone) {
        this.name = name;
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public void cure(Pet a){
        System.out.println("兽医"+name+"正在给"+a.getName()+"看病");
        if(a.getStrength()<60){
            System.out.println("打针，吃药，挂水");
            a.setStrength(60);
            System.out.println("本次治疗费用1千8");
        }else{
            System.out.println(this.name+"说"+a.getName()+"很健康，没病！");
        }
    }
}
